<%@ page language="java"  pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/wm.tld" prefix="wm"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>订单</title>

</head>

<body>
<s:if test="pageList!=null">
<table>
<s:iterator id="l" value="%{pageList.ObjectList}">
<tr>
	<td>
		<s:property value="#l.resName"/>
		<s:date name="#l.addTime" format="yyyy-MM-dd hh:mm" />
		<s:if test="#l.state==0">已下单 <a href="orders.action?action=remove&id=<s:property value="#l.id"/>&total=<s:property value="pageList.pages.page"/>">删除</a></s:if>
		<s:if test="#l.state==1">饭店接单</s:if>
		<s:if test="#l.state==2">饭店送出</s:if>
		<s:if test="#l.state==3">交易成功</s:if>
	</td>
</tr>
</s:iterator>
<tr>
	<td><wm:pages value="%{pageList.pages}"/></td>
</tr>
</table>
</s:if>
</body>
</html>
